package com.masterclient.app.businessmodule.minemodule.message.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.masterclient.app.R
import com.eoner.baselibrary.bean.personal.CouponMsgBean

/**
 * 作者：sean
 * 创建时间：2018/5/22 19:10
 * 功能说明：
 */
class CouponMsgAdapter : BaseQuickAdapter<CouponMsgBean.DataBean.ShItemsBean,BaseViewHolder>(R.layout.item_coupon_msg){

    override fun convert(helper: BaseViewHolder, item: CouponMsgBean.DataBean.ShItemsBean) {

        helper.setText(R.id.tv_current_time,item.sh_date)
        helper.setText(R.id.tv_notice,item.sh_notice)
        helper.setText(R.id.tv_coupon_name,"优惠券："+item.sh_name)
        helper.setText(R.id.tv_end_date,"到期时间："+item.sh_expire_date+"点击此处查看详情 >>>")
    }
}